/*
 * @Author: xiaosihan 
 * @Date: 2024-07-23 21:44:51 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2024-07-23 22:18:47
 */

import { PartData } from "@type";
import { observable, configure } from "mobx";
configure({ enforceActions: "never" });

const factoryOrderStore = observable({

    // 类目
    category: '',
    setCategory(category: string) {
        this.category = category;
    },

    //零件数据列表
    partList: [] as Array<PartData>,
    setPartList(partList: Array<PartData>) {
        this.partList = partList;
    },

    //翻页
    page: 1,
    pageSize: 10,
    setPage(page: 1) {
        this.page = page;
    },

    //获取零件列表
    getPartList() {
        const { page, pageSize, category } = this;
    }
});

export default factoryOrderStore;